def dayUp(df):
    dayup = 1.0
    for i in range(365):
        if i % 7 in [6, 0, 5]:
            dayup = dayup
        else:
            dayup = dayup * (1 + df)
    return dayup
dayfactor = eval(input("请输入每工作一天水平增加值N:"))
print("工作四天，不工作水平不降低的年终值为：{:.3f}".format(dayUp(dayfactor)))

